package com.gongye.courseselectionsystem.common;

import com.gongye.courseselectionsystem.utils.CompareTimeUtil;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author baorongchuan
 */
@Component
public class TimeJudge {
    public static final String START_TIME_STR = "2021-10-14 16:47:00";
    public static final String END_TIME_STR = "2022-10-14 16:50:00";

    public static Boolean time() {
        return CompareTimeUtil.isBelong(new Date(),
                "yyyy-MM-dd HH:mm:ss",
                START_TIME_STR,
                END_TIME_STR);
    }
}
